package com.soccertgc.comm
{
	import flash.events.Event;

	public class CallEvent extends Event
	{
		
		// -------------------------------------------------------------------------------
		// CONSTANTS
		// -------------------------------------------------------------------------------	
		
		// Events
		public static const		STATUS_CHANGED:String				= "call_status_changed";
		public static const		EVENT_CALL_FAIL:String				= "call_failed";
		public static const		EVENT_CALL_SUCCESS:String			= "call_succeded";
		public static const		EVENT_CALL_ERROR:String				= "call_error";
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		protected  var _call:Call;

		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function CallEvent(type:String, call:Call)
		{
			// ancestor constructor
			super(type); 
			// Initialization
			_call = call;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get call():Call
		{
			return _call;
		}

	}
}